package com.boxin.ims.modules.wechat.busi;

import org.springframework.stereotype.Service;

import com.boxin.ims.modules.wechat.entity.WechatMember;

/**
 * @author Jakemanse
 * @date 2013-10-7
 * @function <p> 导航处理器</p>
 */
@Service
public class LinktoProcessor extends BusinessProcessor{
	
	private String title;		//回复标题
	private String desc;		//回复内容
	private String picUrl;		//图片地址
	private String url;			//网址
	private boolean isMemberService = true;	//是否会员服务

	public LinktoProcessor() {
		
	}
	
	
	@Override
	public ProcessMessage process() {
		if(isMemberService){
			WechatMember member = memberCheckAndReply();
			if(member == null) return null;
		}
		
		//String reply = "亲,请<a href=\"http://www.hdzhx.com/zxims/f/wechat/product/seckills?uid="+user.getId() +"&wechatId="+openId+"\">点我进入秒杀页面</a>!";
//		String picUrl = "http://www.hdzhx.com/zxims/static/images/reg.jpg";
//		String url = "http://www.hdzhx.com/zxims/f/wechat/product/seckills?uid="+user.getId() +"&wechatId="+openId;
		writeLinkImageToUser(title, desc, picUrl, url);
		
		return null;
	}

	@Override
	public boolean isNeedBeMember() {
		return false;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getDesc() {
		return desc;
	}


	public void setDesc(String desc) {
		this.desc = desc;
	}


	public String getPicUrl() {
		return picUrl;
	}


	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}


	public String getUrl() {
		return url;
	}


	public void setUrl(String url) {
		this.url = url;
	}


	public boolean isMemberService() {
		return isMemberService;
	}


	public void setMemberService(boolean isMemberService) {
		this.isMemberService = isMemberService;
	}
	
	
	
	

}
